package pa14.proj.boundschecker.test;

@SuppressWarnings("unused")
public class TC6_ValueChangingBounds {

	public static void main(String[] args) {
		TC6_ValueChangingBounds test = new TC6_ValueChangingBounds();
		test.changeBounds();
		test.decrementBounds();
	}
	
	public void changeBounds(){
		int[] arr = new int[5];
		int x, b;
		
		x = 4;
		b = arr[x];
		
		x++;
		b = arr[x];
		
	}

	public void decrementBounds(){
		int[] arr = new int[5];
		int x, b;
		
		x = 0;
		b = arr[x];
		
		x--;
		b = arr[x];
		
	}
}
